package bin_tree.heap;

import java.util.Arrays;

public class HeapTest {
    public static void main(String[] args) {
//        MaxHeap heap = new MaxHeap();
        int[] arr = {15, 17, 19, 13, 22, 16, 28, 30, 41, 62};
        MaxHeap heap = new MaxHeap(arr);
        System.out.println(heap);
//        for (int i : arr) {
//            heap.add(i);
//        }
//        heap.add(52);
//        System.out.println(heap);
//        for (int i = 0; i < arr.length; i++) {
//            arr[i] = heap.extractMax();
//        }
//        System.out.println(Arrays.toString(arr));
    }
}
